ifneq ($(KERNELRELEASE),)

obj-m:=button_int.o
button_int-objs:=buttondrv.o #这后边可以加多个文件

else

#KDIR:=/lib/modules/`uname -r`/kernel
KDIR:=/home/supanyang/u-boot/linux-3.0.85
all:
    make -C $(KDIR) M=$(shell pwd) modules
	
clean:
    make -C $(KDIR) M=$(shell pwd) clean	
	
endif